/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.matrimonybeans;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.Stateless;

/**
 *
 * @author hb
 */
@Stateless
public class View_ChargesForRegistration implements View_ChargesForRegistrationLocal {

    Connection conn;
    ResultSet rs = null;

    @Override
    public ResultSet select_ChargesForRegistration() {
        try {
            ConnectDB conDB = new ConnectDB();
            conn = conDB.getConnection();
            String strSql = "SELECT * FROM ChargesForRegistration";
            PreparedStatement pstmt = conn.prepareCall(strSql);
            rs = pstmt.executeQuery();

        } catch (SQLException ex) {
            Logger.getLogger(View_ChargesForRegistration.class.getName()).log(Level.SEVERE, null, ex);
        }
        return rs;
    }
}
// Add business logic below. (Right-click in editor and choose
// "Insert Code > Add Business Method")

